import request from '@/utils/request'

// 获取统计数量
export function getHomeMsg(query) {
    return request({
        url: '/tms/topPage/getHeadData',
        method: 'get',
        params: query
    })
}
// 获取出入库数量
export function getInOut(query) {
    return request({
        url: '/tms/topPage/getInOutData',
        method: 'get',
        params: query
    })
}
// 获取数据面板 - 司机
export function driverMsg(query) {
    return request({
        url: '/tms/dataBoard/get_driver_info',
        method: 'get',
        params: query
    })
}
// 获取数据面板 - 车辆
export function carMsg(query) {
    return request({
        url: '/tms/dataBoard/get_car_info',
        method: 'get',
        params: query
    })
}
// 获取数据面板 - 目的地运输量
export function bournMsg(query) {
    return request({
        url: '/tms/dataBoard/get_shipping_quantity',
        method: 'get',
        params: query
    })
}
// 数据面板 - 运输单信息
export function transportMsg(query) {
    return request({
        url: '/tms/dataBoard/get_transport_task',
        method: 'get',
        params: query
    })
}
// 数据面板 - 运单线路图
export function lineMsg(query) {
    return request({
        url: '/tms/dataBoard/get_transport_count',
        method: 'get',
        params: query
    })
}
// 数据面板 - 运输准时率 | 异常运输 | 实际到达
export function rightMsg(query) {
    return request({
        url: '/tms/dataBoard/get_transport_rate',
        method: 'get',
        params: query
    })
}